<?php

use think\migration\Migrator;
use think\migration\db\Column;

class CreateUserAccount extends Migrator
{
    public function up(){
        $table = $this->table('user_account',['signed' => false,'comment'=>'代收货款账户表']);
//        $table ->addColumn('user_id','integer',['limit'=>10,'comment'=>'用户id'])
//               ->addForeignKey('user_id', 'user', 'id', ['delete'=> 'CASCADE'])
//               ->addColumn('account','string',['limit'=>255,'comment'=>'代收款账户'])
//               ->addColumn('create_time','integer',['limit'=>10,'default'=>0,'comment'=>'创建时间'])
//               ->addColumn('update_time','integer',['limit'=>10,'default'=>0,'comment'=>'更新时间'])
//               ->create();
    }
    public function down(){
        $this->dropTable('user_account');
    }
}
